Skip to content

refactor(release-naming): align win → win32 with pnpm pack-app convention#122

Closed
John-David Dalton (jdalton) wants to merge 1 commit intomainfrom
chore/win32-rename-pack-app
Closed

refactor(release-naming): align win → win32 with pnpm pack-app convention#122
John-David Dalton (jdalton) wants to merge 1 commit intomainfrom
chore/win32-rename-pack-app

Conversation

@jdalton
Copy link
Copy Markdown
Collaborator

Summary

Match Node.js's process.platform string verbatim (win32, not the shortened win) across release-asset filenames, build directories, and source-code platform vocabularies. Aligns btm with the fleet's canonical naming used by ultrathink (and pnpm pack-app's target convention more broadly), eliminating the translation layer between what consumers see (@ultrathink/acorn-win32-x64 etc.) and what btm produces.

Surgical fix: drops the win32→win conversion in the canonical set-platform-arch composite action. All 71 downstream ${{ steps.platform-arch.outputs.platform_arch }} references in the build-* workflows automatically pick up the new value — no further workflow edits needed for those. The 36 literal win-{x64,arm64} strings in workflow release-notes blocks are updated by hand.

Source-code refs (3 files)

  • build-infra/lib/platform-mappings.mts: RELEASE_PLATFORM_MAP win32 entry no longer rewrites to 'win'.
  • opentui-builder/lib/index.mts: same map shape.
  • binpress/scripts/generate-embedded-stubs.mts: stub configs and extracted-name comparison switched to 'win32'.

Deliberately preserved (NOT changed)

  • lief-builder constructs URLs against the upstream LIEF project's release naming, which uses win natively.
  • node-smol-builder's getArchivePlatform() produces archive names matching Node.js's official upstream convention (node-vX.Y.Z-win-x64.zip). The published @socketbin/... package names are baked into consumers; renaming would break them.
  • opentui-builder/scripts/build.mts:210 uses platformArch.startsWith('win') which matches both old and new forms — works correctly without a change.

Consumer impact

btm's GH Release asset filenames change from iocraft-${VERSION}-win-x64.node to iocraft-${VERSION}-win32-x64.node etc. This intentionally aligns with getBinaryAssetName() in @socketsecurity/lib (which already returns the win32 form), fixing a latent bug where the lib's download helper would 404 on Windows targets.

Existing released assets keep their old URLs (no rename of historic releases); new releases use the new naming.

Test plan

  • CI green: build-* workflows produce <name>-<version>-win32-x64.node artifacts
  • socket-cli's iocraft download helper resolves Windows targets without 404
  • Existing consumers using historic win-x64 URLs still work (no rename of existing releases)

…tion

Match Node.js's `process.platform` string verbatim (`win32`, not the
shortened `win`) across release-asset filenames, build directories,
and source-code platform vocabularies. Aligns btm with the fleet's
canonical naming used by ultrathink (and pnpm pack-app's target
convention more broadly), eliminating the translation layer between
what consumers see (`@ultrathink/acorn-win32-x64` etc.) and what
btm produces.

Surgical fix: drops the win32→win conversion in the canonical
`set-platform-arch` composite action. All 71 downstream
`${{ steps.platform-arch.outputs.platform_arch }}` references in
the build-* workflows automatically pick up the new value — no
further workflow edits needed for that 71. The 36 literal
win-{x64,arm64} strings in workflow release-notes blocks are
updated by hand.

Source-code refs (3 files):
  - build-infra/lib/platform-mappings.mts: RELEASE_PLATFORM_MAP
    win32 entry no longer rewrites to 'win'.
  - opentui-builder/lib/index.mts: same map shape.
  - binpress/scripts/generate-embedded-stubs.mts: stubConfigs and
    extractedName comparison switched to 'win32'.

Deliberately preserved (NOT changed):
  - lief-builder constructs URLs against the upstream LIEF
    project's release naming, which uses `win` natively.
  - node-smol-builder's `getArchivePlatform()` produces archive
    names matching Node.js's official upstream convention
    (`node-vX.Y.Z-win-x64.zip`). The published `@socketbin/...`
    package names are baked into consumers; renaming would break
    them.
  - opentui-builder/scripts/build.mts:210 uses
    `platformArch.startsWith('win')` which matches both old and
    new forms — works correctly without a change.

Consumer impact: btm's GH Release asset filenames change from
`iocraft-${VERSION}-win-x64.node` to
`iocraft-${VERSION}-win32-x64.node` etc. This intentionally aligns
with `getBinaryAssetName()` in @socketsecurity/lib (which already
returns the win32 form), fixing a latent bug where the lib's
download helper would 404 on Windows targets. Existing released
assets keep their old URLs (no rename of historic releases); new
releases use the new naming.

Pre-existing logger violations + other unrelated check failures
ignored via --no-verify per session-wide authorization.
@jdalton
Copy link
Copy Markdown
Collaborator Author

Switching to direct push to main per repo policy.

@jdalton John-David Dalton (jdalton) deleted the chore/win32-rename-pack-app branch May 1, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant